package su.fishr 
{
	import flash.display.Sprite;
	import flash.display.DisplayObject;
	import flash.events.Event;
	
	
	
	
	
	
	
	/**
	 *   Класс обслуживающий сцену приложения
	 * @private
	 * @author fish_r
	 */
	public class RootFlySquares extends Sprite 
	{
		/**@private**/
		[Embed(source="/../lib/fPS.swf")] 
		var fps_c:Class;
		private var _nowCount:DisplayObject;
		
		private var _parent:ParentFlySquares;
		
		public function RootFlySquares() 
		{
			if (stage) init(null);
			else this.addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			
			_parent = new ParentFlySquares();
			this.addChild(_parent);
			
			_nowCount = new fps_c();
			this.addChild(_nowCount);
			
		}
		
	}

}